<?php
/**
 * <https://y.st./>
 * Copyright © 2015 Alex Yst <mailto:copyright@y.st>
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see <https://www.gnu.org./licenses/>.
**/

$xhtml = array(
	'title' => 'Do not attempt to forward onions directly to other onions',
	'body' => <<<END
<p>
	While sorting music from <a href="http://professorshyguy.com/">Professor Shyguy</a>&apos;s $a[USB] drive, I found that <a href="https://professorshyguy.bandcamp.com/album/rated-heart">Rated Heart</a> has a new track since sometime after I purchased it.
	While I did not put it together right away, it seems that this track is the full version of a proprietary sample that he once released, but this time, it has been made free and added to a free album.
	There seems to be some gaps in this collection though.
	In particular, only partial copies of <a href="https://professorshyguy.bandcamp.com/album/the-instrumentals">The Instrumentals</a> and <a href="https://professorshyguy.bandcamp.com/album/triforce-tour-triforce-collected">Triforce Tour - Triforce Collected</a> are included and one proprietary album that I will not mention and was not going to listen to anyway was left out entirely.
	I will need to purchase the partial albums separately to get the full versions.
	I think that all the included tracks have $a[MP3] files present, but many do not have the $a[WAVE] files that most do.
	Very few tracks are present in $a[FLAC] format.
	This $a[USB] drive sale is a better offer for people that use $a[MP3]s than for those that like myself use Vorbis files, but it is definitely nice to have the exclusive files.
	Some of them are older versions of songs from before they were released, but a few seem to be entirely different songs.
	For my sorting-by-license purposes, I decided that it was safest to consider any song to have the same license as its on-Bandcamp counterpart, even if it is an alternative version, and only take into account <a href="/en/weblog/2015/12-December/14.xhtml">Professor Shyguy&apos;s &quot;no copyright&quot; assertion</a> for songs unique to the $a[USB] drive.
	Specifically, I found these tracks to be unavailable on his Bandcamp page:
</p>
<ul><li>.<ul>
	<li>MP3s<ul>
		<li>0000 - Odds.
	 Also ends<ul>
			<li>2012 - The Aeronauts - The White Lie Album<ul>
				<li>The Aeronauts - 01 - One White Lie.mp3</li>
				<li>The Aeronauts - 02 - One White Lie 2.mp3</li>
				<li>The Aeronauts - 03 - One White Lie 3.mp3</li>
				<li>The Aeronauts - 04 - The Villain (Acoustic).mp3</li>
				<li>The Aeronauts - 05 - The Aeronauts - SBF (Acoustic).mp3</li>
			</ul></li>
			<li>2004 - Brandt Cooley - Happy Parallel<ul>
				<li>Brandt Cooley - Happy Parallel - 17 Pull Paradox (Bonus Track).mp3</li>
			</ul></li>
			<li>Another One Bytes the Dust (Short).mp3</li>
			<li>Professor Shyguy - Helix Prophecy.mp3</li>
			<li>Professor Shyguy - Star Stuff (Demo).mp3</li>
		</ul></li>
	</ul></li>
	<li>WAVs<ul>
		<li>0000 - Odds &amp; Ends<ul>
			<li>Professor Shyguy - Helix Prophecy.wav</li>
		</ul></li>
	</ul></li>
</ul></li></ul>
<p>
	While building the above nested list by hand, I realized that it would have been much easier if I could have told my machine to build the list form me based on the actual structure of the directory.
	After I finished, I built a <a href="https://notabug.org/y.st./php/src/master/st/y/dir_to_ul.function">new function</a> to handle this sort of situation for me next time, should I find myself in a similar situation later.
	I also decided to add a version number to my $a[PHP] script library.
	If I am going to work on building reusable code that depends on this library, such as the forum software I am going to build, I need to have version numbers so that it is easy to understand what version of the library is needed.
</p>
<p>
	I logged into <a href="/en/domains/cepo.local.xhtml"><code>cepo</code></a> today to get <a href="https://github.com/ReclaimYourPrivacy/eschalot">eschalot</a> and <a href="https://notabug.org/y.st./eightoni">twooni</a> set up, and I found an interesting change.
	Specifically, the $a[SSH] greeting that lists where my last login was from listed the domain returned by a query of my local $a[IP] address against the $a[rDNS] entries on my local $a[DNS] server! I had no idea that the $a[SSH] server even bothered with $a[rDNS].
</p>
<p>
	I will not name any names, but someone told me that it is possible to forward a $a[Tor] hidden service port to a port on another hidden service instead of an $a[IP] address.
	I tried doing that, and it caused $a[Tor] to shut down entirely, costing my my relay uptime.
	In other words, this setup is not in fact possible.
	To insure that services can safely be moved away from the machine running the onion address, services should use extra encryption in addition to that provided by $a[Tor].
	For example, use $a[HTTPS] with your onion addresses, not $a[HTTP].
</p>
<p>
	My <a href="/a/canary.txt">canary</a> still sings the tune of freedom and transparency.
</p>
END
);
